/**
 * created by yangtong on 2025/6/30 下午9:32
 */
export type ValidationRuleName =
    | 'required'
    | 'email'
    | 'phone'
    | 'url'
    | 'number'
    | 'integer'
    | 'positiveNumber'
    | 'alpha'
    | 'alphaNum'
    | 'alphaNumChinese'
    | 'chinese'
    | 'passwordWeak'
    | 'passwordMedium'
    | 'passwordStrong'
    | 'idCard'
    | 'bankCard'
    | 'ip'
    | 'domain'

export type ValidationRuleWithParam =
    | `minLength:${number}`
    | `maxLength:${number}`
    | `length:${number},${number}`
    | `min:${number}`
    | `max:${number}`
    | `range:${number},${number}`
    | `pattern:${string}`

export type ValidationRule = ValidationRuleName | ValidationRuleWithParam